using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MomentumV2
{

    /// <summary>
    /// The main class of the Momentum: Mobile Armor Division game.
    /// </summary>
    public class MomentumV2 : Microsoft.Xna.Framework.Game
    {

        #region Instance Variables

        public static string version = "2.0.0.1";
        GraphicsDeviceManager m_Graphics;
        mScreenManager m_ScreenManager;

        #endregion

        #region Initialization

        /// <summary>
        /// The game constructor.
        /// </summary>
        public MomentumV2()
        {
            Content.RootDirectory = "Content";
            m_Graphics = new GraphicsDeviceManager(this);
            m_Graphics.PreferredBackBufferWidth = 1024;
            m_Graphics.PreferredBackBufferHeight = 768;
            m_ScreenManager = new mScreenManager(this);
            Components.Add(m_ScreenManager);
            m_ScreenManager.AddScreen(new mBackgroundScreen());
            m_ScreenManager.AddScreen(new mMainMenuScreen());
        }

        #endregion

        #region Draw

        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        protected override void Draw(GameTime gameTime)
        {
            m_Graphics.GraphicsDevice.Clear(Color.Black);
            base.Draw(gameTime);
        }

        #endregion

    }

    #region Entry Point

    static class Program
    {
        static void Main()
        {
            MomentumV2 game = new MomentumV2();
            game.Run();
        }
    }

    #endregion

}

